/**
 * Copyright(c) 2013 Jade Techonologies Co., Ltd.
 *
 * History:
 *   13-7-11 下午1:39 Created by sky
 */
package com.jade.modules.message.sms.comm;

import com.jade.framework.base.comm.ResponseMessage;

/**
 * 短信响应。
 *
 * @author sky
 * @version 1.0 13-7-11 下午1:39
 */
public class SmsResponse
        extends SmsProtocolMessage
        implements ResponseMessage
{
    protected int status;

    public SmsResponse(int commandId)
    {
        super(commandId);
    }

    public SmsResponse(int commandId, int sequenceId)
    {
        super(commandId, sequenceId);
    }

    public int getStatus()
    {
        return status;
    }

    public void setStatus(int status)
    {
        this.status = status;
    }

    @Override
    public boolean isRequest()
    {
        return false;
    }

    public boolean isResponse()
    {
        return true;
    }

    public boolean isOK()
    {
        return status == 0;
    }
}
